<?php

namespace app\controller\index;

use app\result\UpdateResult;
use think\facade\View;

//use think\response\View;

class Index extends BaseIndex
{
    protected $unauthorized = ['index','wap'];

    public function index()
    {
        $isAjax = request()->isAjax();
        if ($isAjax) {
            $check = (new UpdateResult())->check($this->param);
            data_exit_json($check);
        }
        return view('index/index');
    }

    public function wap()
    {
        $check = (new UpdateResult())->index($this->param);
        data_exit_json($check);
    }
}
